second largest element in an array without sorting